package com.content.Mapper.drama;

import com.content.Entity.drama.Audio;
import com.content.Entity.drama.BookMake;
import com.content.Entity.drama.Drama;
import com.content.Entity.drama.Video;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DramaMapper {
    List<Drama> getDramaList(@Param("dramaName") String dramaName);

    void deleteDrama(String dramaId);

    void updateDrama(Drama drama);

    void addDrama(Drama drama);

    List<Video> getVideoList(String dramaId);

    List<Audio> getAudioList(String dramaId);

    Drama getDrama(String dramaId);

    List<BookMake> getBookMakes(String userId);

    void addBookMake(BookMake bookMake);

    void deleteBookMake(String dramaId, String userId);

    List<BookMake> getBookMakes1(String userId);

    List<BookMake> getBookMakes2(String userId);

    List<BookMake> getBookMakes3(String userId);

    List<Drama> getDramaListByThree(String dramaName, String username);

    void deleteVideo(String videoId);

    void deleteAudio(String audioId);

    void deleteBookMakeByDramaId(String dramaId);
}
